CREATE TABLE [dbo].[Perferences]
(
[Id] [int] NOT NULL IDENTITY(1, 1),
[UserId] [int] NOT NULL,
[Name] [varbinary] (max) NOT NULL,
[Value] [varbinary] (max) NOT NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
ALTER TABLE [dbo].[Perferences] ADD
CONSTRAINT [FK_Perferences_UserInfo] FOREIGN KEY ([UserId]) REFERENCES [dbo].[UserInfo] ([Id])
ALTER TABLE [dbo].[Perferences] ADD 
CONSTRAINT [PK_Perferences] PRIMARY KEY CLUSTERED  ([Id]) ON [PRIMARY]
GO
